<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN" 
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
     <class name="cn.firstsoft.modules.loge.domain.LogeGrade" table="loge_grade">
        <id name="id" type="integer">
            <column name="id" />
            <generator class="native" >
				<param name="sequence">LOGE_GRADE_ID_SEQ</param>
            </generator>
        </id>
        <property name="name" type="string">
            <column name="name" length="50"/>
        </property>
        <property name="rem" type="string">
            <column name="rems" length="250"/>
        </property>
        <property name="status" type="string">
            <column name="status" length="10"/>
        </property>
         <set name="logeRoom" inverse="true" cascade="all">
            <key>
                <column name="grade_id"/>
            </key>
            <one-to-many class="cn.firstsoft.modules.loge.domain.LogeRoom" />
        </set>
    </class>

</hibernate-mapping>
